package com.uycode;

import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;

@Transactional(isolation = Isolation.SERIALIZABLE)
public class AnnotationTest implements Serializable {
    private static final long serialVersionUID = 3167873257780173843L;


    public static void main(String[] args) {
        boolean exp = false;
        label1:
        for (int i = 0; i < 100; i++) {
            if (i == 60)
                exp = true;
            if (exp) {
                break label1;
            }
        }
    }

}
